/*
 * @Author: 
 * @Date: 2025-07-10 11:03:27
 * @LastEditTime: 2025-07-11 11:48:15
 * @Description: 
 */
class PutawaySummaryResponse {
  final int code;
  final PutawaySummaryData data;
  final String msg;

  PutawaySummaryResponse({
    required this.code,
    required this.data,
    required this.msg
  });

  factory PutawaySummaryResponse.fromJson(Map<dynamic, dynamic> json) {
    return PutawaySummaryResponse(
      code: json['code'] ?? 0,
      data: PutawaySummaryData.fromJson(json['data']??''),
      msg: json['msg']?.toString() ?? '',
    );
  }
}

class PutawaySummaryData{
  int? id;
  int tasks;
  int locations;
  int lpns;
  int items;
  int totalEaches;

  PutawaySummaryData({
    this.id,
    required this.tasks,
    required this.locations,
    required this.lpns,
    required this.items,
    required this.totalEaches,
  });

  factory PutawaySummaryData.fromJson(Map<dynamic, dynamic> json) {
    return PutawaySummaryData(
      id: json['id'],
      tasks: json['tasks'] ?? 0,
      locations: json['locations'] ?? 0,
      lpns: json['lpns'] ?? 0,
      items: json['items'] ?? 0,
      totalEaches: json['total_quantity']??0,
    );
  }
}